{% extends 'templates/default_template.html' %}
{%block content%}
<h1>{{company.name}}'s areas list</h1>
  {%for a in areas%}
  <div class="areaElement">
    <p>{{a.name}}</p>
    
    {% for rk in a.responsibles %}
      {%ifequal rk logged_user.key %}
      <p><a href="/users/me">You</a> are one the responsibles of this area</p>
      {%endifequal%}
    {% endfor %}
    <div class="elementOptions">
	<a href="/areas/{{a.key}}">View Area Details</a>
    </div>
  </div>
  {%endfor%}
  {% if not areas%}
  <div class="zeroHits">
    <p>The are no areas</p>
  </div>
  {% endif %}
{%endblock content%}